package cn.com.czpb.client.model.news;


import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import org.litepal.LitePal;
import org.litepal.annotation.Column;
import org.litepal.crud.DataSupport;
import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

/**
 * Created by 猪猪侠 on 2017/7/3.
 */

public class NewsChannelBean1 extends LitePalSupport implements Serializable,MultiItemEntity{
    /**
     * tid : 260
     * style : 3
     * sort_order : 33
     * cnname : 文化
     */

    public static final int TYPE_MY = 1;
    public static final int TYPE_OTHER = 2;
    public static final int TYPE_MY_CHANNEL = 3;
    public static final int TYPE_OTHER_CHANNEL = 4;

    @Column(unique = true)
    @SerializedName("tid")
    private String tid;

    @Expose
    private String ischoice="1";
    private int itemType;
    /**
     * style : 0
     * sort_order : 0
     * cnname : 主栏目(勿删)_by_czm
     * type : 4
     * logo : http://resource.cloudgx.cn/files/images/e33a80d202709dc0ef4bc29ea143dae7.png
     * link :
     * childs : [{"tid":"662","style":"0","sort_order":"0","cnname":"二级链接栏目(勿删)_by_czm","type":"2","logo":"http://resource.cloudgx.cn/files/images/560b0734f5aceef0992eaf8d6ab13c9a.jpeg","link":"http://www.baidu.com"},{"tid":"663","style":"0","sort_order":"0","cnname":"二级普通栏目(勿删)_by_czm","type":"1","logo":"http://resource.cloudgx.cn/files/images/1fbbef5d5669719bc18ed680a51e548c.jpg","link":""}]
     */

    @SerializedName("style")
    private String style;
//    @SerializedName("sort_order")
    private int sortOrder;
    @SerializedName("cnname")
    private String cnname;
    @SerializedName("type")
    private String type;
    @SerializedName("logo")
    private String logo;
    @SerializedName("link")
    private String link;
//    @SerializedName("childs")
//    private List<ChildsBean> childs;

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public NewsChannelBean1(int itemType) {
        this.itemType = itemType;
    }
    public NewsChannelBean1() {
    }

    public String getIschoice() {
        return ischoice;
    }

    public void setIschoice(String ischoice) {
        this.ischoice = ischoice;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }



    @Override
    public String toString() {
        return "NewsChannelBean{" +
                "tid='" + tid + '\'' +
                ", style='" + style + '\'' +
                ", sortOrder='" + sortOrder + '\'' +
                ", cnname='" + cnname + '\'' +
                '}';
    }

    @Override
    public int getItemType() {
            return itemType;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public int getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getCnname() {
        return cnname;
    }

    public void setCnname(String cnname) {
        this.cnname = cnname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

//    public List<ChildsBean> getChilds() {
//        return childs;
//    }
//
//    public void setChilds(List<ChildsBean> childs) {
//        this.childs = childs;
//    }


}
